<script setup lang="ts">
import { useRouter } from 'vue-router'

defineProps<{
  title?: string
  rightText: string
}>()
const router = useRouter()
const btnLeft = () => {
  router.back()
}
</script>

<template>
  <van-nav-bar
    :title="title"
    :right-text="rightText"
    left-arrow
    @click-left="btnLeft"
  />
</template>

<style lang="scss" scoped></style>
